package com.futuristik.arkitek;




import android.media.AudioManager;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.MediaController;

import com.badlogic.gdx.backends.android.AndroidApplication;


public class ArkitekAndroid extends AndroidApplication {
    @Override
        public void onCreate (android.os.Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                initialize(new Arkitek(), false);    
                
        }
    
    



@Override
public boolean onKeyDown(int keyCode, KeyEvent event)
{
	
	
     
	int action = event.getAction();
		switch(keyCode)
		{
			case KeyEvent.KEYCODE_BACK:
			//Do Nothing; Let Lib GDX do this.
			break;
			
			case KeyEvent.KEYCODE_VOLUME_UP:
				 if (action == KeyEvent.ACTION_UP) {
					 
					 
		            }
				 return true;
				 //return true;//TODO
			//Do Nothing
			
			
			case KeyEvent.KEYCODE_VOLUME_DOWN:
				if (action == KeyEvent.ACTION_DOWN) {
	                //TODO
					  }
				
				return true;
		          
			//Do Nothing
		
				
				
		}
		
		return false;
}


@Override
public boolean onCreateOptionsMenu(Menu menu) {
	menu.add("Quit");
	return true;
}

@Override
public boolean onOptionsItemSelected(MenuItem item) {
	if (item.getTitle() == "Quit") {
		finish();
	} 
	return true;
}



}

